<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>产品ID查询</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/product_query.css') }}">
</head>
<body>
    <div class="container">
        <h2>产品ID查询</h2>
        <div class="form-group">
            <label>禅道地址</label>
            <!-- 先给定一个默认值 -->
            <input type="text" id="zentao_url" required
                   value="{{ default_zentao_url }}"
                   placeholder="{{ default_zentao_url }}">
        </div>
        <div class="form-group">
            <label>禅道账号</label>
            <input type="text" id="account" required>
        </div>
        <div class="form-group">
            <label>密码</label>
            <input type="password" id="password" required>
        </div>
        <div class="form-actions">
            <button class="query-btn" onclick="queryProducts()">立即查询</button>
        </div>
        <div id="product-list"></div>
        <div style="text-align:center; margin-top:25px;">
            <a href="/" class="back-link">返回首页</a>
        </div>
    </div>
    <script src="{{ url_for('static', filename='js/product_query.js') }}"></script>
</body>
</html>
